<template>
	 <view>
		 <div class="service flex-box-x">
		         <div class="service_img flex-y-center flex-x-center">
		             <div>
		                 <img src="https://shop.zdsy.shop/themes/screens/public/assets/images/service_img.png" alt="">
		                 <!-- <div>我的客服</div> -->
		             </div>
		         </div>
		         <div class="service_personnel col-xs-x">
		             <div class="service_personnel_text">{{post_data.qq}}<span></span></div>
		         </div>
		 
		     </div>
		     <div class="service flex-box-x">
		 
		             <div class="service_personnel_text">客服微信：</div>
		         <div class="service_img flex-y-center flex-x-center">
		              <div class="service_personnel col-xs-x wx_img">
		             <img :src="post_data.wx_code" alt="">
		         </div>
		         </div>
		     </div>
		 
		     <div class="service flex-box-x">
		         <div style="font-size: 12px">{{post_data.service_text}}</div>
		     </div>
		 </div>
	 </view>
</template>

<script>
	export default {
		data() {
			return {
				post_data: '',
			};
		},
		onLoad(options) {
			this.getData();
		},
		methods: {
			getData() {
				this.$api.get({
					url: 'portal/my/my_service',
					data: {},
					success: res => {
						this.post_data = res.data;
						console.log(this.post_data)
					}
				});
			},
		}
	};
</script>


<style>
     .service{
                margin: 10px 20px;
                padding: 10px;
                border-radius: 4px;
                box-shadow: 0px 0px 6px 0px #ccc;
                background: #fff;
            }
            .service_img img{
                width: 60px;
                margin: auto;
            }
            .service_img{
                width: 28%;
                margin: auto;
            }
            .service_personnel{
                font-size: 12px;
            }
            .service_img{
                font-size: 12px;
            }
            .service_personnel_btn{
                background: #65a3ff;
                color: #fff;
                text-align: center;
                padding: 4px;
                border-radius: 6px;
                width: 80px;
                font-size: 12px;
                margin: auto;
            }
            .flex-box-x {
                -webkit-box-orient: horizontal;
                -webkit-box-direction: normal;
                -ms-flex-direction: row;
                flex-direction: row;
                display: -webkit-flex;
            }
            .flex-y-center {
                -webkit-box-align: center;
                -ms-flex-align: center;
                align-items: center;
                display: -webkit-flex;
            }
    
            .flex-box-x > .col-xs-x {
                -webkit-box-flex: 1;
                -ms-flex: 1;
                flex: 1;
            }
            .flex-x-center {
                -webkit-box-pack: center;
                -ms-flex-pack: center;
                justify-content: center;
                display: -webkit-flex;
                text-align: center;
            }
            .service_personnel_text{
                padding:10px 0;
                font-size: 14px;
                border-top:1px solid #ccc;
            }
            .service_personnel_text:first-child {
                border-top: none;
            }
            span{
                -webkit-user-select: all;
            }
            .wx_img img{
                width: 120px;
                height: 120px;
            }
</style>